<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
<meta name="format-detection" content="telephone=no">
<title>南方资管</title>
<link href="css/normalize.css" rel="stylesheet" type="text/css">
<link href="css/main.css" rel="stylesheet" type="text/css">
<script src="js/rem.js"></script>
</head>
<body>
<?php include("header.php");?>
<div class="container">
  
  <div class="banner-warp"><img src="images/mes-img.jpg" alt="我 们 期 待 您 的 留 言" width="100%"></div>
  <div class="menu-tab-warp">
    <ul class="menu-tab">
      <a href="" title="意见反馈" class="current">意见反馈</a>
    </ul>
  </div>
  <div id="container">
    <div class="message">
      <form action="" onsubmit="return chekcForm(this);">
        <input type="text" placeholder="留言标题">
        <textarea name="" id=""  placeholder="请输留言内容"></textarea>
        <input type="reset" value="重置">
        <input type="submit" value="提交">
      </form>
    </div>
  </div>

</div>
<?php include("footer.php");?>

<script src="js/jquery.min.js"></script>
<script src="js/comm.js"></script>
<script>
function chekcForm(obj){
  var title = $(obj).find('input[type=text');
  var content = $(obj).find('textarea');

  if(title.val() == ''){
    alert('标题不能为空！！');
    return false;
  }

  if(content.val() == ''){
    alert('内容不能为空！！');
    return false;
  }
}
</script>
</body>
</html>